import java.util.Scanner;

public class Teacher extends Person{
    private String title;
    Teacher(String name, String email, String address, String title){
        super(name, email, address);
        this.title = title;
    }
    public void setLoad() {
        Scanner input = new Scanner(System.in);
        System.out.println("输入职称");
        String inputt = input.nextLine();
        title = inputt;
    }
    public String getLoad(){
        return title;
    }
    public String toString(){

        return super.toString() + "职称：[" + title + "]";
    }
}
